# Copyright (c) 2023 Presto Labs Pte. Ltd.
# Author: taekwon


def get_cmd_vault_key_copy(key_name, remote_key_path, is_fund=False):
  vault_fab_path = """\
upload_coin_key_high:vault_token_file="./python/coin_deploy/vault/coin_key_high.json"\
"""
  if is_fund:
    vault_fab_path = """\
upload_fund_key_high:vault_token_file="./python/coin_deploy/vault/fund_key_high.json"\
"""
  cmd = f"""./python/coin_deploy/fab.sh \
-f python/coin_deploy/fabhelper/fabutil.py \
-P {vault_fab_path},\
key_name="{key_name}",\
remote_key_path="{remote_key_path}",\
run_local=True"""
  return cmd
